<!DOCTYPE html>
<html lang="en" xmlns:zxw="http://www.w3school.com.cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>首页</title>
    <link rel="stylesheet" href="../../../js/common/layui/css/layui.css">
    <link rel="stylesheet" href="../../../css/common/animate.css"/>
    <link rel="stylesheet" href="../../../css/common/bootstrap/css/bootstrap.css"/>
    <link rel="stylesheet" href="../../../css/common/bootstrap/treeview/bootstrap-treeview.css"/>
    <link rel="stylesheet" href="../../../css/common/common.css"/>
    <style type="text/css" >
        .layui-btn-group1{
            padding: 10px 10px;
            position: fixed;
            width: 100%;
            background-color: white;
            z-index: 1;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }
        .layui-tab{
            margin-top: 58px;
        }
    </style>
</head>
<body class="layout-zxw">
<div class="layui-btn-group1">
    <button class="layui-btn  layui-btn-small" onclick="menu.addRole();return false;"><i class="layui-icon"></i>新增角色
    </button>
    <button class="layui-btn layui-btn-small" onclick="menu.addMenu();return false;"><i class="layui-icon"></i>新增菜单
    </button>
    <button class="layui-btn layui-btn-small" onclick="menu.save(this);return false;"><i
            class="fa  fa-floppy-o fa-fw"></i>保存
    </button>
</div>
<div class="layui-form" style="padding: 10px 15px">


    <div class="layui-tab">
        <ul class="layui-tab-title">
            <li id="home" class="layui-this">角色配置菜单</li>
            <li id="profile">菜单对应角色配置信息</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <blockquote class="layui-elem-quote">根据角色配置菜单选择，角色只能选择一个，菜单可勾选多个。【保存】按钮只保存当前显示出来的tab页信息</blockquote>
                <div class="row">
                    <div class="col-xs-12 col-sm-6 col-md-6">
                        <fieldset class="layui-elem-field">
                            <legend>角色</legend>
                            <div class="layui-field-box">
                                <div id="treeRole"></div>
                            </div>
                        </fieldset>
                    </div>
                    <div class="col-xs-12 col-sm-6 col-md-6">
                        <fieldset class="layui-elem-field">
                            <legend>菜单</legend>
                            <div class="layui-field-box">
                                <input type="text" name="menutitle" id="menutitle" placeholder="请输入菜单名称查询"
                                       autocomplete="off" class="layui-input">
                                <br>
                                <div id="treeMenu"></div>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
            <div class="layui-tab-item">
                <blockquote class="layui-elem-quote">根据菜单权限选择角色信息，菜单权限只能选择一个，角色可勾选多个。【保存】按钮只保存当前显示出来的tab页信息</blockquote>
                <div class="row">
                    <div class="col-xs-12 col-sm-6 col-md-6">
                        <fieldset class="layui-elem-field">
                            <legend>菜单</legend>
                            <div class="layui-field-box">
                                <input type="text" name="menutitle1" id="menutitle1" placeholder="请输入菜单名称查询"
                                       autocomplete="off" class="layui-input">
                                <br>
                                <div id="treeMenu1"></div>
                            </div>
                        </fieldset>
                    </div>
                    <div class="col-xs-12 col-sm-6 col-md-6">
                        <fieldset class="layui-elem-field">
                            <legend>角色</legend>
                            <div class="layui-field-box">
                                <div id="treeRole1"></div>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--<script src="../../../js/common/jquery/jquery-1.11.1.js" ></script>-->
<script type="application/javascript" src="../../../js/common/own/own.js?layui,jquery,treeview,njzxw,URL,jurisdiction">
    njzxw.layui.init();
    menu.init();
</script>
</body>
</html>